<#include "../../head.ftl">
<div class="page_title">客户信息管理 > 客户信息</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="to('linkman.html');">联系人</button>
    <button class="common_button" onclick="to('activities.html');">交往记录</button>
    <button class="common_button" onclick="to('orders.html');">历史订单</button>

    <button class="common_button" onclick="back();">返回</button>
    <button class="common_button" onclick="document.forms[0].submit();">保存</button>
</div>
<form action="${base}/customer/save" method="post">
    <input type="hidden" name="id" value="${customer.id}">
    <input type="hidden" name="identity" value="${customer.identity}">
<table class="query_form_table">
    <tr>
        <th>客户编号</th>
        <td>${customer.identity}</td>
        <th>名称</th>
        <td><input type="text" name="name" value="${customer.name}" /><span class="red_star">*</span></td>
    </tr>
    <tr>
        <th>地区</th>
        <td>
            <select name="area">
                <option value="">全部</option>
				<#list areaList as area>
                    <option value="${customer.area}">${customer.area}</option>
                <#if customer.area != area.items>
                    <option value="${area.items}">${area.items}</option>
                </#if>
				</#list>
            </select>
            <span class="red_star">*</span></td>
        <th>客户经理</th>
        <td>
            <select name="managerUser.id">
				<option value="${refer.appointUser.id}">${refer.appointUser.name}</option>
				<#list userList as user1>
				<#if refer.appointUser.id!=user1.id>
				    <option value="${user1.id}">${user1.name}</option>
				</#if>
				</#list>
			</select>
        </td>
    </tr>
    <tr>
        <th>客户等级</th>
        <td>
            <select name="grade">
                <option value="">全部</option>
				<#list gradeList as grade>
                <option value="${customer.grade}">${customer.grade}</option>
                <#if customer.grade!= grade.items>
				    <option value="${grade.items}">${grade.items}</option>
                </#if>
				</#list>
            </select>
			<span class="red_star">*</span>
        </td>
        <th>　</th>
        <td>　</td>
    </tr>
    <tr>
        <th>客户满意度</th>
        <td>
            <select name="satisfied">
				<option value="">未指定</option>
                <option value="5" <#if customer.satisfied==5>selected="selected"</#if>>☆☆☆☆☆</option>
                <option value="4" <#if customer.satisfied==4>selected="selected"</#if>>☆☆☆☆</option>
                <option value="3" <#if customer.satisfied==3>selected="selected"</#if>>☆☆☆</option>
                <option value="2" <#if customer.satisfied==2>selected="selected"</#if>>☆☆</option>
                <option value="1" <#if customer.satisfied==1>selected="selected"</#if>>☆</option>
			</select>
			<span class="red_star">*</span>
        </td>
        <th>客户信用度</th>
        <td>
            <select name="credit">
				<option value="">未指定</option>
                <option value="5" <#if customer.credit==5>selected="selected"</#if>>☆☆☆☆☆</option>
                <option value="4" <#if customer.credit==4>selected="selected"</#if>>☆☆☆☆</option>
                <option value="3" <#if customer.credit==3>selected="selected"</#if>>☆☆☆</option>
                <option value="2" <#if customer.credit==2>selected="selected"</#if>>☆☆</option>
                <option value="1" <#if customer.credit==1>selected="selected"</#if>>☆</option>
			</select>
			<span class="red_star">*</span>
        </td>
    </tr>
</table>
<br />
<table class="query_form_table" id="table1">
    <tr>
        <th>地址</th>
        <td><input type="text" name="address" value="${customer.address!''}"  /><span class="red_star">*</span>
        </td>
        <th>邮政编码</th>
        <td><input type="" name="postalcode" value="${customer.postalcode!''}"  size="20" /><span class="red_star">*</span></td>
    </tr>
    <tr>
        <th>电话</th>
        <td>
            <input type="text" name="telephone" value="${customer.telephone!''}" size="20"  /><span class="red_star">*</span></td>
        <th>传真</th>
        <td>
            <input type="text" name="telautogram" value="${customer.telautogram!''}" size="20"  /><span class="red_star">*</span>
        </td>
    </tr>
    <tr>
        <th>网址</th>
        <td>
            <input type="text" name="url" value="${customer.url!''}" size="20"  /><span class="red_star">*</span>
        </td>
        <th>　</th>
        <td>　</td>
    </tr>
</table>
<br />
<table class="query_form_table" id="table2">
    <tr>
        <th>营业执照注册号</th>
        <td><input type="text" name="blrnumber" value="${customer.blrnumber!''}" size="20" /></td>
        <th>法人</th>
        <td><input type="text" name="boss" value="${customer.boss!''}" size="20" /><span class="red_star">*</span>
        </td>
    </tr>
    <tr>
        <th>注册资金（万元）</th>
        <td>
            <input type="text" name="fund" value="${customer.fund!''}" size="20" /> </td>
        <th>年营业额</th>
        <td>
            <input type="text" name="turnover" value="${customer.turnover!''}" size="20" />
        </td>
    </tr>
    <tr>
        <th>开户银行</th>
        <td>
            <input type="text" name="bank" value="${customer.bank!''}" size="20" /><span class="red_star">*</span>
        </td>
        <th>银行帐号</th>
        <td><input type="text" name="account" value="${customer.account!''}" size="20" /><span class="red_star">*</span></td>
    </tr>
    <tr>
        <th>地税登记号</th>
        <td>
            <input type="text" name="landtax" value="${customer.landtax!''}" size="20" /></td>
        <th>国税登记号</th>
        <td><input type="text" name="nationaltax" value="${customer.nationaltax!''}" size="20" /></td>
    </tr>
</table>
</form>
<p>　</p>
</body>
</html>